'use strict';

import express from 'express'
import Admin from '../controller/admin/admin'
import Thom_Admin from '../thom_controller/admin/admin'
import filter from  '../prototype/filter'

let login_authorize = filter.login_authorize;
const router = express.Router();

router.post('/login',Thom_Admin.login);
// router.post('/register', Admin.register);
router.get('/singout', Thom_Admin.singout);
router.get('/all', Thom_Admin.getAllAdmin);
router.get('/count', Thom_Admin.getAdminCount);
router.get('/info', Thom_Admin.getAdminInfo);
router.post('/update/avatar/:admin_id', Thom_Admin.updateAvatar);

export default router